package FourArithmeticOperations;

/**
 * Created by dell on 2017/10/23.
 */
public class treetest {
    public static void main (String[] args){
        LinkedBinaryTree linkedBinaryTree = new LinkedBinaryTree("A");

        LinkedBinaryTree node1=new LinkedBinaryTree("B");
        LinkedBinaryTree node2=new LinkedBinaryTree("C");
        (linkedBinaryTree.root).left = node1.root;

        LinkedBinaryTree linkedBinaryTre = new LinkedBinaryTree("A",node1,node2);
        linkedBinaryTre.getRight();
        linkedBinaryTre.contains("C");
        linkedBinaryTre.inorder();
        System.out.println(linkedBinaryTre.inorder());
        linkedBinaryTre.postorder();
        System.out.println(linkedBinaryTre.postorder());
    }
}
